/* eslint-disable no-shadow */
export function count({ search }) {
  return RSocket.rr({
    route: 'orders.search.count',
    args: { search },
  });
}

export function search({ search, pg }) {
  return RSocket.rs({
    route: 'orders.search',
    args: { search, pg },
  });
}

/**
 * 获取批次列表
 * @param {*} param0
 * @returns
 */
export function getBatches({ search }) {
  return RSocket.rs({
    route: 'biz.coupon.batches',
    args: { search, pg: { page: 0, size: 999 } },
  });
}
